import javax.swing.JButton;
import javax.swing.JFrame;

public class NullLayoutDemo {
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setLayout(null);

		JButton button1 = new JButton("Buton 1");
		button1.setBounds(0, 0, 100, 25);
		frame.add(button1);

		JButton button2 = new JButton("Buton 2");
		button2.setBounds(120, 0, 100, 25);
		frame.add(button2);

		JButton button3 = new JButton("Buton 3");
		button3.setBounds(60, 35, 100, 25);
		frame.add(button3);

		// frame.add(new JButton("Buton 2"));
		// frame.add(new JButton("Buton 3"));
		// frame.add(new JButton("Buton 4"));
		// frame.add(new JButton("Buton 5"));
		// frame.add(new JButton("Buton 6"));

		frame.setSize(300, 200);
		frame.setVisible(true);
	}
}
